home *** CD-ROM | disk | FTP | other *** search
- > I have written a program in Amos which involves a `laser beam`
- > being fired from one part of the screen to another.
- > To do this I just work out dy and dx ( one of these values
- > will be 1) and add them to the original points until the
- > destination is reached or it hits something.
- >
- > It works fine when run through the editor, yet when compiled...
- > does not. Why??? I use real numbers for dx and dy - maybe
- > the compiler cannot deal with these or something?
- > The beam does not go in the right direction at all.
- >
- > Has anyone got a list of inconsistencies in compiler/interpreter
- > operation? This is driving me up the wall.
- >
- > D.O`Cuinn
- >
-
- Hi!
-
- I would recommend you to follow Andy Churchs advice and
- only use integers in your game.
- You (and probably others on this list) may be interested
- to know that there is an efficiently programmed AMOS
- procedure for 100% integer line drawing in the AMOS
- procedure library on Aminet. This procedure can be integrated
- in your games very easily and modified to plot dotted
- lines or lines drawn with icons/bobs/blocks by replacing
- the "Plot x,y" command by "Paste Icon x,y,icon".
- The procedure works well once compiled too.
-
- Regards,
- Chris
-
-
-